package com.epam.edu.task01.tourism.voucher;

import com.epam.edu.task01.tourism.residence.ResidenceInformation;
import com.epam.edu.task01.tourism.road.RoadInformation;

public class VoucherToTreatment extends VoucherToRelax {
	private int treatmentCost;

	public VoucherToTreatment(int id, String country, String city,
			ResidenceInformation residenceInformation,
			RoadInformation roadInformation, int treatmentCost) {
		super(id, country, city, residenceInformation, roadInformation);
		this.treatmentCost = treatmentCost;
	}

	public int getTreatmentCost() {
		return treatmentCost;
	}

	@Override
	public int makeVoucherCost() {
		return (super.makeVoucherCost() + this.treatmentCost * 130 / 100);
	}

	@Override
	public String getVoucherType() {
		return "VoucherToTreatment";
	}
	
	public void setTreatmentCost(int treatmentCost) {
		this.treatmentCost = treatmentCost;
	}

 	@Override
	public String toString() {
		return "VoucherToTreatment [id=" + super.getId() + ", country="
				+ super.getCountry() + ", city=" + super.getCity() + ", "
				+ super.getResidenceInformation().toString() + ", "
				+ super.getRoadInformation().toString() + ", treatmentCost="
				+ treatmentCost + "]";
	}

}
